package com.ruan.openfeign;

import com.ruan.pojo.Role;
import org.springframework.stereotype.Component;

/**
 * @ClassName:RoleCenterOpenfeignFallBack
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/19 16:21
 **/
@Component
public class RoleCenterOpenfeignFallBack implements RoleCenterOpenfeign{

    @Override
    public Role getRoleById(Integer id) {
        Role role = new Role();
        role.setRoleName("默认用户");
        return role;
    }
}
